package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.RedemptionEntity;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 赎回etcc
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-08 09:43:27
 */
public interface RedemptionDao extends BaseMapper<RedemptionEntity> {

    List<RedemptionEntity> selectRedemptionList();

    Integer updateSuccessAmount(@Param("amount") BigDecimal amount,@Param("id") Integer id);

    Integer updateSuccessAmountStatus(@Param("amount") BigDecimal amount,@Param("id") Integer id);

}
